//
//  UIImageView+Size.m
//  ShenTongECar
//
//  Created by 正合适 on 2017/7/21.
//  Copyright © 2017年 正合适. All rights reserved.
//

#import "UIImageView+Size.h"

@implementation UIImageView (Size)
+ (void)scaleImageToFitWithImageView:(UIImageView *)origionImageView {
    [origionImageView setContentScaleFactor:[[UIScreen mainScreen] scale]];
    origionImageView.contentMode = UIViewContentModeScaleAspectFill;
    origionImageView.layer.masksToBounds = YES;
}

@end
